import request from '@/utils/request'

//获取列表
export function getList(params){
  return request({
    url:'/stag',
    method:'get',
    params:params
  })
}


//获取信息
export function getStag(id){
  return request({
    url:'/stag/'+id,
    method:'get'
  })

}


export function getExist(id){
  return request({
    url:'/stag/exist/'+id,
    method:'get'
  })
}
//添加暂存
export function addStag(data){
  return request({
    url:'/stag',
    method:'post',
    data:data
  })
}
//修改
export function updateStag(data){
  return request({
    url:'/stag',
    method:'put',
    data:data
  })
}
//删除
export function delStag(id){
  return request({
    url:"/stag/"+id,
    method:'delete',
  })
}

